
package ro.qi.framework.sys.security.entities;

import ro.qi.framework.sys.entities.Entity;

public class SecurityGroupCollection extends Entity {

	public SecurityGroupCollection() {
		super();
	}

	public SecurityGroupCollection(int parentId) {
		super();
		select();
	}

	public int getCollectionSize() {
		return getCollectionSize("groups");
	}

	public int getId(int index) {
		return getCollectionIntValue("groups", "id", index);
	}

	public SecurityGroup getGroup(int index) {
		return new SecurityGroup(getId(index));		
	}
	
}
